using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RBAC.Domain.ArrivalInspection
{
    /// <summary>
    /// 到货检验附件
    /// </summary>
    [Table("ArrivalInspectionAttachment")]
    public class ArrivalInspectionAttachment
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public long Id { get; set; }

        /// <summary>
        /// 外键：检验单ID
        /// </summary>
        public long InspectionId { get; set; }

        /// <summary>
        /// 原始文件名
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 存储路径/URL
        /// </summary>
        public string FilePath { get; set; }

        /// <summary>
        /// 文件大小（字节）
        /// </summary>
        public long FileSize { get; set; }

        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime UploadTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 上传人
        /// </summary>
        public string Uploader { get; set; }

        /// <summary>
        /// 备注/描述
        /// </summary>
        public string Remark { get; set; }
    }
}
